package demo1210;

public class Demo_01 {
    public static void main(String[] args) {
        int [] arr = {23,24,32,4};
        int max = arr[0];
        int index = 0;
        for (int i = 0; i < arr.length; i++) {
            if (max<arr[i]){
                max = arr[i];
                index = i;
            }
           // 奖金
        }
        System.out.println(index);
    }
}
